const path = require('node:path')

module.exports = {
  mode: 'development',
  entry: './src/index.js',
  output: {
    filename: 'bundle_[hash:8].js',
    path: path.resolve(__dirname, 'dist')
  },
  module: {
    rules: [
      {
        test: /\.js$/i,
        exclude: /node_moduels/,
        use: [
          'babel-loader',
          'eslint-loader'
        ]
      }
    ]
  }
}
